package com.marchsoft.vo;

import com.marchsoft.domain.Group;
import com.marchsoft.domain.Teacher;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * class description：兴趣小组表的扩展类
 * author：rsw
 * Date: 2019/11/17
 * Time: 18:33
 *
 * ‘@EqualsAndHashCode’注解含义，具体看博客——
 * https://blog.csdn.net/zhanlanmg/article/details/50392266
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class GroupExtra extends Group {

    /**
     * 一对多的关系：一个兴趣小组，对应多个老师
     */
    private List<Teacher> teacherList;
}

